package com.qf.ebook.mapper;

import com.qf.ebook.entity.EbookEntry;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 图书信息mapper接口
 */
public interface EbookEntryMapper {
    // 根据type
    List<EbookEntry> findByType(@Param("type") Integer type);

    @Insert("insert into ebook_entry (category_id,title,summary,uploaduser,createdate) values (#{categoryId},#{title},#{summary},#{uploaduser},#{createdate})")
    Integer save(EbookEntry ebookEntry);
}
